package com.gzhryc.socket.mosquitto.log;

import com.gzhryc.socket.SocketCallback;
import com.gzhryc.socket.SocketNode;

public abstract class MosquittoLogHandler {

	protected MosquittoLogHandler nextHandler;
	protected SocketCallback mCallback;
	protected SocketNode mNode;
	
	public MosquittoLogHandler(MosquittoLogHandler nextHandler,SocketNode node,SocketCallback callback){
		this.nextHandler = nextHandler;
		this.mNode = node;
		this.mCallback = callback;
	}
	
	public boolean execute(String logStr){
		if(this.nextHandler != null){
			return nextHandler.execute(logStr);
		}
		return true;
	}
}
